import request from '@/utils/request'

/* 获取岗位权限列表 */
export function getList(data) {
  return request({
    url: '/apartment/auth/list',
    method: 'get',
    params: data
  })
}

/* 获取权限信息 */
export function getAuth(authId) {
  return request({
    url: `/apartment/auth/${authId}`,
    method: 'get',
  })
}

export default {
  getList,
  getAuth
}